use chrono::NaiveDateTime;
use rocket::Route;
use serde::{Deserialize, Deserializer, Serializer};

pub(crate) mod mysql;
pub(crate) mod  res;
pub(crate) mod  date_util;

macro_rules! datetime_fields {
    ($($field:ident),+ $(,)?) => {
        $(
            #[serde(with = "create::ctx::date_util")]
            pub $field: NaiveDateTime,
        )+
    };
}


pub trait RouterLoader {
    fn loader() -> Vec<Route>;
}